app.controller('wdHeaderCtrl',['$scope',function ($scope) {
    var userData = JSON.parse(localStorage.getItem('userData'));
        $scope.name = userData.userNameCn;
        //$scope.company = '北京首钢自动化信息技术有限公司';
        $scope.department = userData.departmentName;

    if(userData.company == "GF")
    {
        $scope.company ="北京首钢股份有限公司"
    }
    if(userData.company == "JT")
    {
        $scope.company ="首钢京唐联合有限公司"
    }
    if(userData.company == "SQ")
    {
        $scope.company ="秦皇岛首秦金属材料有限公司"
    }
    if(userData.company == "KY")
    {
        $scope.company ="首钢矿业公司"
    }
    if(userData.company == "CG")
    {
        $scope.company ="首钢长治钢铁有限公司"
    }
    if(userData.company == "SG")
    {
        $scope.company ="首钢水城钢铁(集团)有限责任公司"
    }
    if(userData.company == "GG")
    {
        $scope.company ="首钢贵阳特殊钢有限责任公司"
    }
    if(userData.company == "TG")
    {
        $scope.company ="通化钢铁集团股份有限公司"
    }
    if(userData.company == "YG")
    {
        $scope.company ="首钢伊犁钢铁有限公司"
    }
    if(userData.company == "HJ")
    {
        $scope.company ="首钢环境产业有限公司"
    }
    if(userData.company == "SY")
    {
        $scope.company ="北京首钢实业有限公司"
    }
    if(userData.company == "ZX")
    {
        $scope.company ="北京首钢自动化信息技术有限公司"
    }
    if(userData.company == "JD")
    {
        $scope.company ="北京首钢机电有限公司"
    }
    if(userData.company == "KT")
    {
        $scope.company ="北京首钢矿业投资有限责任公司"
    }
    if(userData.company == "LS")
    {
        $scope.company ="北京首钢鲁家山石灰石矿有限公司"
    }
    if(userData.company == "JX")
    {
        $scope.company ="北京京西重工有限公司"
    }
    if(userData.company == "GJ")
    {
        $scope.company ="北京首钢国际工程技术有限公司"
    }
    if(userData.company == "CY")
    {
        $scope.company ="北京首钢城运控股有限公司"
    }
    if(userData.company == "KG")
    {
        $scope.company ="首钢控股有限公司"
    }
    if(userData.company == "YQ")
    {
        $scope.company ="北京首钢氧气厂"
    }
    if(userData.company == "BY")
    {
        $scope.company ="北京北冶功能材料有限公司"
    }
    if(userData.company == "TA")
    {
        $scope.company ="北京首钢吉泰安新材料有限公司"
    }
    if(userData.company == "ZS")
    {
        $scope.company ="中国首钢国际贸易工程公司"
    }
    if(userData.company == "JS")
    {
        $scope.company ="北京首钢建设集团有限公司"
    }
    if(userData.company == "DC")
    {
        $scope.company ="北京首钢房地产发开有限公司"
    }
    if(userData.company == "TS")
    {
        $scope.company ="北京首钢特殊钢有限公司"
    }
    if(userData.company == "DK")
    {
        $scope.company ="首钢地质勘察院"
    }
    if(userData.company == "TY")
    {
        $scope.company ="北京首钢体育文化有限公司"
    }
    if(userData.company == "YF")
    {
        $scope.company ="北京首钢园区综合服务有限公司"
    }
    if(userData.company == "YL")
    {
        $scope.company ="首钢集团有限公司园区管理部"
    }
    if(userData.company == "JY")
    {
        $scope.company ="首钢技术研究院"
    }
    if(userData.company == "WH")
    {
        $scope.company ="北京首钢文化有限公司"
    }
    if(userData.company == "WL")
    {
        $scope.company ="北京首运物流有限责任公司"
    }
    if(userData.company == "YY")
    {
        $scope.company ="北京大学首钢医院"
    }
    if(userData.company == "TH")
    {
        $scope.company ="北京首钢铁合金有限公司"
    }
    if(userData.company == "RC")
    {
        $scope.company ="人才开发院"
    }
    if(userData.company == "YK")
    {
        $scope.company ="首钢建设投资有限公司"
    }
}])
